//Name:
//Purpose:
//Author: wjy
//Date: 2022-01-25 12:08:24
//From:

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    int n;
    printf("This program prints a table of squares.\n");
    printf("Enter number of entries in table: ");
    scanf("%d", &n);
    for (int i = 1, odd = 3, square = 1; i <= n; odd += 2)
    {
        printf("%10d%10d\n", i, square);
        i++;
        square += odd;
    }
    system("pause");
    return 0;
}